#!/bin/bash

diff /etc/ldap.conf /etc/ldap.conf.target &> /dev/null
d1=$?

diff /etc/openldap/ldap.conf /etc/openldap/ldap.conf.target >& /dev/null
d2=$?

diff /etc/pam.d/system-auth /etc/pam.d/system-auth.target >& /dev/null
d3=$?

if [ $d1 = 0 -a $d2 = 0 -a $d3 = 0 ] ; then
    exit 0
fi

exit 1
